import React from 'react';
import { withRouter, Redirect } from 'react-router-dom'
import './css/FaceShow.less'
import helper from '../../../utils/helper'

class FaceShow extends React.PureComponent {
    render() {
        return (
            <div onClick={this.props.onClick} id="FaceShow" className={this.props.className} style={{
                backgroundImage: 'url(' + (this.props.isHide ? '' : helper.showFace(this.props.imgUrl)) + ')'
            }}></div>
        );
    }
}

export default withRouter(FaceShow)